package src.student;

public class Student {
	
	private String name;
	private String age;
	private String  calss;
	public String getName() {
		System.out.println();
		System.out.println();
		System.out.println();
		System.out.println();
		System.out.println("ssss");
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAge() {
		return age;
	}
	
	public void setAge(String age) {
		this.age = age;
	}
	public String getCalss() {
		return calss;
	}
	public void setCalss(String calss) {
		System.out.println();
		System.out.println();
		this.calss = calss;
	}
	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + ", calss=" + calss
				+ "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((age == null) ? 0 : age.hashCode());
		result = prime * result + ((calss == null) ? 0 : calss.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Student other = (Student) obj;
		if (age == null) {
			if (other.age != null)
				return false;
		} else if (!age.equals(other.age))
			return false;
		if (calss == null) {
			if (other.calss != null)
				return false;
		} else if (!calss.equals(other.calss))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
}
